package com.xingji.handlebars.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by joe on 16-11-15.
 */
@Controller
@RequestMapping("handlebars")
public class HandlebarsDemoController {

  /**
   * 测试each
   * @return
   */
  @RequestMapping("/testEach")
  public String testEach(){
    return "handlebars_jsps/handlebars_each";
  }

  /**
   * 测试this
   * @return
   */
  @RequestMapping("/testThis")
  public String testThis(){
    return "handlebars_jsps/handlebars_this";
  }
  /**
   * 测试with
   * @return
   */
  @RequestMapping("/testWith")
  public String testWith(){
//    return "handlebars_jsps/handlebars_with";
    return "handlebars_jsps/handlebars_with_this";
  }

  /**
   * 测试this
   * @return
   */
  @RequestMapping("/testIf")
  public String testIf(){
    return "handlebars_jsps/handlebars_if";
  }

  /**
   * 测试helper
   * @return
   */
  @RequestMapping("/testHelper")
  public String testHelper(){
    return "handlebars_jsps/handlebars_helper";
  }
}
